﻿namespace Filters.Demo
{
    using System.Drawing;
    using System.Windows.Forms;
    using System.IO;
    using System;

    public partial class SimilarImagesForm : Form
    {
        public SimilarImagesForm()
        {
            InitializeComponent();
        }

        public void LoadResult(ImageModelControl[] controls, string comparedFilename, Image comparedBinarized, double distance)
        {
            this.mainPanel.Controls.Clear();
            this.mainPanel.Controls.AddRange(controls);
            this.pictureBox1.Image = Image.FromFile(comparedFilename);
            this.pictureBox2.Image = comparedBinarized;
            this.label1.Text = Path.GetFileName(comparedFilename);
            this.label3.Text = distance.ToString();
            this.label7.Text = controls.Length.ToString();
        }
    }
}
